﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using TrainingsApp.Logic.Import;
using TrainingsApp.Model;

namespace ImportTest {

    public partial class ImportProcess {

        public static void ImportChapter() {

            string[] filePaths = Directory.GetFiles(@"E:\曹磊\教育\TrainingsApp\Doc\知识点\浙教版\");
            ChapterTypeImport import = new ChapterTypeImport();
            foreach (var item in filePaths) {
                import.Import(1,item, ImportType.Chapter);
                Console.WriteLine(string.Format("{0}-Success", item));
            }
            Console.Write("OK");
            //        Console.ReadLine();

        }
    }


}
